<!DOCTYPE html><%@ page pageEncoding="UTF-8"%><%@ include file="/include/commons.jsp"%>
<html>
	<head>
	<head>
		<meta charset="UTF-8">
		<title>编辑文章</title>
		<link rel="stylesheet" href="${ctx }/css/admin.css">
		<script src="${ctx }/js/jquery-1.10.0.min.js"></script>
		<script src="${ctx }/js/admin.js" charset="utf-8"></script>
		<script src="${ctx }/ueditor/editor_config.js"></script>
		<script src="${ctx }/ueditor/editor_all.js"></script> 
	</head>
	<body>
		<div id="wrapper">
			<div id="menu"></div>
			<div id="sidebar"></div>
			<div id="content">
				<h1>编辑文章 - 栏目: ${sessionScope.article.channel.title }</h1>
				<hr>
				<form id="article" action="article_update" method="post">
					<input type="hidden" name="article.id" value="${sessionScope.article.id }">
					标题: <input name="article.title" value="${sessionScope.article.title }"><br>
					来源: <input name="article.origin" value="${sessionScope.article.origin }"><br>
					时间: <input name="article.time" value='<fmt:formatDate value="${sessionScope.article.time }"  pattern="yyyy-MM-dd HH:mm:ss"/>'><br>
					点击: <input name="article.clicks" value="${sessionScope.article.clicks }"><br>
					摘要: <textarea name="article.summary">${sessionScope.article.summary }</textarea>
					内容: <textarea name="article.content" id="myEditor">${sessionScope.article.content }</textarea><br>
					<input type="submit" value="更新">
				</form>
				<script type="text/javascript">
				    UE.getEditor('myEditor');
				</script> 
			</div>
			<div id="clear"></div>
		</div>
	</body>
</html>